<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Discount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discount" data-rule="required" class="form-control" step="0.1" min="0" max="1" name="row[discount]" type="number" value="{$row.discount|htmlentities}">
            <tip>商品折扣,1表示不打折,0.8表示8折</tip>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Voucher_times')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-voucher_times" data-rule="required" class="form-control" name="row[voucher_times]" type="number" value="{$row.voucher_times|htmlentities}">
            <tip>服务项目支付代金券次数</tip>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Teacher_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-teacher_ids" data-rule="required" 
                data-source="user/user/index" 
                data-params='{"custom[is_teacher]":"1"}' 
                data-field="nickname" 
                data-primary-key="id"
                data-search-field="nickname,mobile"
                data-multiple="true" 
                class="form-control selectpage" 
                name="row[teacher_ids]" 
                type="text" 
                value="{$row.teacher_ids}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Benefits')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-benefits" class="form-control " rows="5" name="row[benefits]" cols="50">{$row.benefits|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
